package com.klikmee.sms.chat.web.filters;

import com.klikmee.sms.services.chat.model.Question;

/**
 * Defines message listener which can be set up to
 * process customers request. Usually chain 
 * of listeners is set up and processing stops
 * when one of them returns true from {@link #processMessage(Question)}
 * method.
 *
 */
public interface MessageFilter {
	/**
	 * This method is executed when new customer request is received.
	 * 
	 * @return true if request processing should stop, false otherwise.
	 */
	public boolean processMessage(Question question);
}
